package com.wencai.bean;

/**
 * @author wangpan
 * @date 2023/5/11
 */
public class BuyStock {
    private String stockName;
    private String buyDate;
    private String sellDate;
    private String buyPrice;
    private String sellPrice;
    private Double gainRate;
    private String isLimitUp;   // 是否涨停
    private String firstLimitUp;    // 最早封涨停时间
    private String lastLimitUp;     // 最后未封涨停时间
    private String isOpen;     // 是否中途开板
    private Double startMoney;  // 买入前的总金额
    private Double endMoney; // 卖出后的总金额
    private Double buyMoney; // 用于买入股票的金额
    private Double sellMoney; // 卖出后的总值, 已计算手续费
    private Double fee; // 交易手续费
    private long amount;    // 买入的总手数, 只能为整数
    private Double gain; // 获利金额, 等于买入减去卖出

    public BuyStock() {
    }

    public BuyStock(String stockName, String buyDate, String sellDate, String buyPrice, String sellPrice) {
        this.stockName = stockName;
        this.buyDate = buyDate;
        this.sellDate = sellDate;
        this.buyPrice = buyPrice;
        this.sellPrice = sellPrice;
    }

    public String getStockName() {
        return stockName;
    }

    public void setStockName(String stockName) {
        this.stockName = stockName;
    }

    public String getBuyDate() {
        return buyDate;
    }

    public void setBuyDate(String buyDate) {
        this.buyDate = buyDate;
    }

    public String getSellDate() {
        return sellDate;
    }

    public void setSellDate(String sellDate) {
        this.sellDate = sellDate;
    }

    public String getBuyPrice() {
        return buyPrice;
    }

    public void setBuyPrice(String buyPrice) {
        this.buyPrice = buyPrice;
    }

    public String getSellPrice() {
        return sellPrice;
    }

    public void setSellPrice(String sellPrice) {
        this.sellPrice = sellPrice;
    }

    public String getIsLimitUp() {
        return isLimitUp;
    }

    public void setIsLimitUp(String isLimitUp) {
        this.isLimitUp = isLimitUp;
    }

    public String getFirstLimitUp() {
        return firstLimitUp;
    }

    public void setFirstLimitUp(String firstLimitUp) {
        this.firstLimitUp = firstLimitUp;
    }

    public String getLastLimitUp() {
        return lastLimitUp;
    }

    public void setLastLimitUp(String lastLimitUp) {
        this.lastLimitUp = lastLimitUp;
    }

    public Double getGainRate() {
        return gainRate;
    }

    public String getIsOpen() {
        return isOpen;
    }

    public void setIsOpen(String isOpen) {
        this.isOpen = isOpen;
    }

    public void setGainRate(Double gainRate) {
        this.gainRate = gainRate;
    }

    public Double getBuyMoney() {
        return buyMoney;
    }

    public void setBuyMoney(Double buyMoney) {
        this.buyMoney = buyMoney;
    }

    public Double getSellMoney() {
        return sellMoney;
    }

    public void setSellMoney(Double sellMoney) {
        this.sellMoney = sellMoney;
    }

    public Double getGain() {
        return gain;
    }

    public void setGain(Double gain) {
        this.gain = gain;
    }

    public long getAmount() {
        return amount;
    }

    public void setAmount(long amount) {
        this.amount = amount;
    }

    public Double getStartMoney() {
        return startMoney;
    }

    public void setStartMoney(Double startMoney) {
        this.startMoney = startMoney;
    }

    public Double getEndMoney() {
        return endMoney;
    }

    public void setEndMoney(Double endMoney) {
        this.endMoney = endMoney;
    }

    public Double getFee() {
        return fee;
    }

    public void setFee(Double fee) {
        this.fee = fee;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("BuyStock{");
        sb.append("stockName='").append(stockName).append('\'');
        sb.append(", buyDate='").append(buyDate).append('\'');
        sb.append(", sellDate='").append(sellDate).append('\'');
        sb.append(", buyPrice='").append(buyPrice).append('\'');
        sb.append(", sellPrice='").append(sellPrice).append('\'');
        sb.append(", gainRate=").append(gainRate);
        sb.append(", isLimitUp='").append(isLimitUp).append('\'');
        sb.append(", firstLimitUp='").append(firstLimitUp).append('\'');
        sb.append(", lastLimitUp='").append(lastLimitUp).append('\'');
        sb.append(", isOpen='").append(isOpen).append('\'');
        sb.append(", startMoney=").append(startMoney);
        sb.append(", buyMoney=").append(buyMoney);
        sb.append(", sellMoney=").append(sellMoney);
        sb.append(", endMoney=").append(endMoney);
        sb.append(", fee=").append(fee);
        sb.append(", amount=").append(amount);
        sb.append(", gain=").append(gain);
        sb.append('}');
        return sb.toString();
    }
}
